﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Web.master" AutoEventWireup="true" CodeBehind="MyTraining.aspx.cs" Inherits="badminton.Pages.MyTraining" %>
<%@ Register assembly="badminton" namespace="badminton.bdmControls" tagprefix="bdmc" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit.HTMLEditor" tagprefix="cc1" %>
<%@ Register Src="~/Controls/HallPics.ascx" TagName="HallPics" TagPrefix="bdmc" %>
<%@ Register    Assembly="AjaxControlToolkit"    Namespace="AjaxControlToolkit"   TagPrefix="ajaxToolkit" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">

        /* Accordion */
        .accordionHeader
        {
            border: 1px solid #2F4F4F;
            color: white;
            background-color: #2E4d7B;
	        font-family: Arial, Sans-Serif;
	        font-size: 12px;
	        font-weight: bold;
            padding: 5px;
            margin-top: 1px;
            cursor: pointer;
        }

        #master_content .accordionHeader a
        {
	        color: #FFFFFF;
	        background: none;
	        text-decoration: none;
        }

        #master_content .accordionHeader a:hover
        {
	        background: none;
	        text-decoration: underline;
        }

        .accordionHeaderSelected
        {
            border: 1px solid #2F4F4F;
            color: white;
            background-color: #5078B3;
	        font-family: Arial, Sans-Serif;
	        font-size: 12px;
	        font-weight: bold;
            padding: 5px;
            margin-top: 1px;
            cursor: pointer;
        }

        #master_content .accordionHeaderSelected a
        {
	        color: #FFFFFF;
	        background: none;
	        text-decoration: none;
        }

        #master_content .accordionHeaderSelected a:hover
        {
	        background: none;
	        text-decoration: underline;
        }

        .accordionContent
        {
            background-color: #D3DEEF;
            border: 1px dashed #2F4F4F;
            border-top: none;
            padding: 5px;
            padding-top: 10px;
        }
        
        td
        {
        	vertical-align:top;
        }

    </style>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table style="width:100%; height: 242px;" cellspacing=0px>
        <tr>
            <td class="style1" valign="top" width="220px">
                         <ajaxtoolkit:accordion ID="MyAccordion" runat="server" SelectedIndex="0"
                            HeaderCssClass="accordionHeader" HeaderSelectedCssClass="accordionHeaderSelected"
                            ContentCssClass="accordionContent" FadeTransitions="false" FramesPerSecond="40" 
                            TransitionDuration="250" AutoSize="None" RequireOpenedPane="false" 
                             SuppressHeaderPostbacks="true">

                        </ajaxtoolkit:accordion>

                <br /><hr />
                <bdmc:HallPics ID="HallPics1" runat="server" />
            </td>
            <td>
                <asp:Repeater  ID="ListView2" runat="server">
                        <HeaderTemplate>
                          <table width="100%" cellspacing=1 cellpadding=0>
                        </HeaderTemplate>

                        <ItemTemplate>
                          <tr id="Tr2" runat="server">
                            <td>
                              <table  class="thinframetable"  cellspacing=1px width="100%">
                              	<tr class="thinframetable" >
                              		<td colspan=3 class="title">
                                          <asp:Label ID="Label2" runat="server" Text='<%# GetCourseName(Eval("id")) %>' ></asp:Label></td>
                              		<td colspan=1 align="right">
                                          <asp:Label ID="Label3" runat="server" Text='<%# GetGrade(Eval("id")) %>'></asp:Label></td>
                              	</tr>
                             	<tr class="thinframetable" >
                              		<td width="20px" align="center" valign="middle">教练短评</td>
                              		<td width="45%">
                                          <asp:Label ID="Label4" runat="server" Text='<%# GetTrainerReview(Eval("id")) %>' />
                                    </td>
                              		<td width="20px" align="center" valign="middle">您的反馈</td>
                              		<td align="right">
                                          <asp:TextBox ID="TextBox1" runat="server" Text='<%# GetFeedBack(Eval("id")) %>' Rows="5" Width="100%" TextMode="MultiLine" /> 
                                          <asp:LinkButton ID="Button1" runat="server" Text="提交" OnCommand="OnFeedBack" CommandArgument='<%# Eval("id") %>' CommandName= '<%# (Container as RepeaterItem).ItemIndex%>' />
                                   </td>

                              	</tr>
                              </table>
                            </td>
                          </tr>
                        </ItemTemplate>

                        <FooterTemplate>
                        </table>
                        </FooterTemplate>
                </asp:Repeater>
            </td>
        </tr>
    </table>
</asp:Content>
